//自定义指令全局自动注册
import Vue from 'vue'
import drag from '@/directive/grid-drag-col'
import search from '@/directive/grid-search'
import formValid from '@/directive/form-validate'
import permissionBtn from '@/directive/permission-btn'

const install = function (Vue) {
  Vue.directive('grid-drag-col', drag)
  Vue.directive('grid-search', search)
  Vue.directive('form-validate', formValid)
  Vue.directive('permission-btn', permissionBtn)
}

// if (window.Vue) {
//   Vue.use(install); // eslint-disable-line
//   console.log('directive-1')
// }

Vue.use(install);